layui.use(['layer', 'form', 'ztree', 'laydate', 'admin', 'ax', 'table', 'func', 'dict', 'formSelects', 'xmSelect','upload'], function () {
    var form = layui.form;
    var $ax = layui.ax;
    var $ = jQuery = layui.jquery;
    var dict = layui.dict; //获取自定义模块
    var func = layui.func;

    dict.renderDictAll(); //渲染
    //table的初始化实例

    //重新渲染select数据
    form.render('select');

    var ajax = new $ax(Feng.ctxPath + "/erya/home/showAll");
    var result = ajax.start();
    console.log('testttt' +　result.data)
    $('#unReadMessage').html(result.data.unReadMessage);
    $('#orderEvaluateEntities').html(result.data.orderEvaluateEntities);
    $('#costingEntities').html(result.data.costingEntities);
    $('#hotDish').html(result.data.hotDish);
    $('#rawMaterialLoss').html(result.data.rawMaterialLoss);

    $('#showDetail').click(function () {
        func.open({
            height: 600,
            title: '食材消耗明细',
            content: Feng.ctxPath + '/erya/rawmaterialDailyLoss/rawmaterialDailyLoss',
        });
    });
});

